<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<%@ include file="/common/meta.jsp"%>


<script type="text/javascript" src="${res}/js/proposal/irisPrpPrepare.js"></script>
<script type="text/javascript" src="${res}/js/validate/irisvalidator.js"></script>
<script type="text/javascript" src="${res}/js/autodisckey/autodisckey.js"></script>

<style type="text/css">
	.input_width { width:130px }
	.select_width { width:143px }
	.table_td td {border:0}
	.long_input{ width:642px }
    .selectWidth4{width:616px;}
    .table_tmp {  border-collapse:collapse;/*细线表格代码*/ }
	.table_tmp td { border:1px solid #b7d1e6;/*细线表格线条颜色*/ padding:4px; }
	.table_tmp th { border:1px solid #b7d1e6; font-weight:bold; text-align:center; background:#edf2f8; padding:4px; }
</style>
<script type="text/javascript">
var type = "${param.type}";
var parentTable = parent.$("#"+"${param.parentTab}");	//父页面的表格
var selectRadio = $();									//父页面选中的单选框
var selectTr = $();										//父页面选中的行

if(type=="edit") {
	selectRadio = parentTable.find(":radio:checked");
	selectTr = selectRadio.parents("tr");
}
$(function(){
	$("#tab1").click();
	$("#fragment-tab1 :text,#fragment-tab1 [type='date']").addClass("input_width");
	$("#fragment-tab1 select").addClass("select_width");
	$("table.t_css").each(function(){  
	    $(this).find("tr").not(".cbTable tr").filter(":even").addClass("li_1");
	    $(this).find("tr").not(".cbTable tr").filter(":odd").addClass("li_2");
	});

	if(type=="edit"){
		$("input:not(:radio:button),textarea").each(function(){
			var id=$(this).attr("name");
			if(id==null || id==""){
				return true;
			}
			var parentObj=selectTr.find("[name$='/"+id+"']");
			var value="";
			if(parentObj.is("span")){
				value=parentObj.text();
			}else{
				value=parentObj.val();
			}
			$(this).val(value);
		});
		
		$("#prof_title").val($("#prof_title_name").val());
		
		$(":radio").each(function(){//初始化radio框
			var name=$(this).attr("name");
		
			
			var value=$("[name='"+name+"_value']").val();
			if($(this).val()==value)
				$(this).attr("checked",true);
			
		});
		
		initTblEquipments();
		/* 
		initTblCertificates(); */
		
		$("input,select,textarea").each(function(){
			if(!$(this).attr("class")||$(this).attr("class").indexOf("notdisabled")==-1)
				$(this).attr("disabled","true");
		});
		$("a,img").removeAttr("onclick");
		$(".color_red").css("display","none");
		$("img").css("display","none");
		if(parent.thickbox_title)
			parent.$("#TB_ajaxWindowTitle").html("在孵企业基本情况");
		else
		parent.$("#TB_ajaxWindowTitle").html("在孵企业基本情况");
		
	}
	$("#savePsn").click(function(){
		setTimeout(savePsn,100);
	});
});
/**
by zk
@deprecated 检查总数必须大于或等于其他数
@param prefix id前缀
@param countSuffix 其他数id后缀
@param totalSuffix 总数id后缀
@param title 提示的标题
 
*/
function checkTotalVal(prefix,countSuffix,totalSuffix,title){
	if(title!=null)
		   title = title + '-->';
  else
		   title = "";
  var countSuffixs = countSuffix.split(",");
	var total = $("#" + prefix + totalSuffix);
	var totalVal = parseFloat(total.val());
	
	if($.isNumeric(totalVal)){
	    var totalLable = title+total.attr("label");
      for ( var int = 0; int < countSuffixs.length; int++) {
  		var count = $("#" + prefix + countSuffixs[int]);
  		var countLable = count.attr("label");
  		var countVal = parseFloat(count.val());
  		if($.isNumeric(countVal)){
  			if(totalVal<countVal){
  				irisValaddMsg(totalLable+"必须大于等于"+countLable);
  			}
  		}
  	}
  }
}
	
	function initTblEquipments(){
		var xmlStr = $("#equipments").val();
		var reg = /[\r\n]/g;
		/*空替换空格回车  */
		xmlStr=xmlStr.replace(reg,""); 
		if(xmlStr==null || xmlStr=="")
			return false;
		
		var equipmentNode = /<equipment[^s](.\n?)+?<\/equipment>/g;
		var equipment = xmlStr.match(equipmentNode);
		if(equipment != null){
			
			for(var i=0; i<equipment.length; i++){
				$("#cmdAddbefore").click();
				equipment[i] = equipment[i].replace(reg,"");
				var j = i + 1;
				
				var science_name = equipment[i].match(/<science_name(.\n?)+?<\/science_name>/);
				if(science_name != null){
					science_name = science_name[0].replace(/<science_name.*?>|<\/science_name>/g,"");
					$("#equipment" + j +"_science_name").val(science_name);
				}
				
				var project_type = equipment[i].match(/<project_type(.\n?)+?<\/project_type>/);
				if(project_type != null){
					project_type = project_type[0].replace(/<project_type.*?>|<\/project_type>/g,"");
					$("#equipment" + j +"_project_type").val(project_type);
				}
				
				var project_annual = equipment[i].match(/<project_annual(.\n?)+?<\/project_annual>/);
				if(project_annual != null){
					project_annual = project_annual[0].replace(/<project_annual.*?>|<\/project_annual>/g,"");
					$("#equipment" + j +"_project_annual").val(project_annual);
				}
				
				var money = equipment[i].match(/<money(.\n?)+?<\/money>/);
				if(money != null){
					money = money[0].replace(/<money.*?>|<\/money>/g,"");
					$("#equipment" + j +"_money").val(money);
				}
			
				var executive_condition = equipment[i].match(/<executive_condition(.\n?)+?<\/executive_condition>/);
				if(executive_condition != null){
					executive_condition = executive_condition[0].replace(/<executive_condition.*?>|<\/executive_condition>/g,"");
					$("#equipment" + j +"_executive_condition").val(executive_condition);
				}
			}
		}
	}
	
	
	
function formatTextArea(val) {
	var strValues = "";
    var editXmlValue = "";
    strValues = val.split("\n");
    var len = strValues.length;
    if(len>1 && val!=""){
        for(var j =  0 ; j < len; j++){
            editXmlValue += '<br>'+ strValues[j];
        }
        editXmlValue= editXmlValue.substring(4);
    }else {
        editXmlValue=val;
    }
    return editXmlValue;
}
	
/**
 * 申请书保存回调 给予实施项目自由扩展
 */
function beforeSave(){
    $("textarea").each(function(){
        var val=$(this).val();
        val = val.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\n/g,"<br/>").replace(/\s/g,"&nbsp;").replace(/"/g,"&quot;");
        $("input[name='"+$(this).attr('name')+"_hidden']").val(val);
            
    });
}

function savePsn(){
		/*保存文本域值  */
		beforeSave();
		//填写检查接口
		validate($("#fragment-tab1"),"在孵企业基本情况");
		
		checkTotalVal("research_team_","invent_patents_number","patents_number","项目基本情况");
		validate($("#fragment-tab2"),"在孵企业基本情况");
		/* validate($("#tblPrjCase"),"在孵企业基本情况-->承担国家、地方科技计划项目实施情况"); */
	 	validateByTabRow($("#tblPrjCase"),"在孵企业基本情况-->承担国家、地方科技计划项目实施情况");
		 if(!valResult()){
			irisValShowMsg($("#savePsn"));
			return false;
		} 
		//添加新行
		if(type=="add") {
			addNewRowDeal(parentTable);
		}
		
		var xmldate = prePareXmlDataStand($("#tblPrjCase"), "", "");
		$("#equipments").val(xmldate.replace(/<equipments.*?>|<\/equipments>/g,""));
		
		/* var xmldate2=prePareXmlDataStand($("#tblCertificates"), "", "");
		$("#certificates").val(xmldate2.replace(/<certificates.*?>|<\/certificates>/g,"")); */
		$("input:not(:radio:button),textarea").each(function(){
			
			var id=$(this).attr("name");
			var parentObj=null;
			
			if(id==null || id=="")
				return true;
			
			//获得父页面的对象
			if(type=="add"){
				parentObj=parentTable.find("tr:last-child").find("[name$='/"+id+"']");
			}else if(type=="edit"){
				parentObj=selectTr.find("[name$='/"+id+"']");
			}

			if(parentObj!=null){
				if(parentObj.is("span")){
					parentObj.text($(this).val());	//将值写回父页面
				}
				else{
					parentObj.val($(this).val());
				}
			}
			
		});
		
		if(type=="add"){
			parentTable.find("tr:last :radio").attr("checked",true);
			if("${param.parentTab}"=="zh_persons"){
				parent.setSubmitPsn();
			}
		}
		
		$(".wBox_popup").hide();
		if(confirm("保存成功，是否返回申请书页面")){
			parent.tb_remove();
		}else if(type=="add"){
			type = "edit";
			selectRadio = parentTable.find(":radio:checked");	//父页面选中的单选框
			selectTr = selectRadio.parents("tr");				//父页面选中的行
	}
}

function loadAjaxSelect(selectId,url,params,varParm){
	$.ajax( {
		url : url,
		type : 'post',
		dataType:'json',
		data : params,
		success : function(data) {
			
			for(var i=0;i<data.length;i++){
				var value=data[i].id;
				var text=data[i].name;		
				$("#"+selectId).append("<option value='"+value+"'>"+text+"</option>");
				

			}
			if(type=="edit"){//如果是修改，才需要初始化select框的值
				var selectValue=$("[name='"+selectId+"_value']").val();
				$("#"+selectId+" option").each(function(i,obj){
					if($(obj).val()==selectValue){
						setTimeout(function() {
							$(obj).attr("selected",true);
						}, 1);
					}
				});
			}
			
				
		}
	});
	}

 function initTreeValueExt(treeId, treeNode) {
	   
	  if (!(treeNode && (treeNode.level > 0 || !treeNode.isParent))) {
		scmWarn($("#" + treeId).attr("label") + messageTip.researchAreaInvalidDisciplineCode);
		if (treeNode.level == 0) {
			$("#" + treeId).val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId+ "_code']").val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId+ "_value']").val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId+ "_name']").val("");
		}
		
		return false;
		}
		var str = treeNode.name;
		var obj = treeNode.parentNode;
		while (obj != null) {
			obj = obj.parentNode;
		}
		
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId+ "_code']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId+ "_value']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId+ "_name']").val(str);
		
	} 

function setRadioValue(){
	var gender = $("input[name='gender'][type='radio']:checked").val();
	if(!!gender){
		if(gender=='M'){
			$("#gender_name").val("男");
		}else if(gender=='F'){
			$("#gender_name").val("女");
		}
	}
	var oversea = $("input[name='oversea'][type='radio']:checked").val();
	if(!!oversea){
		if(oversea=='1'){
			$("#oversea_name").val("有");
		}else if(oversea=='2'){
			$("#oversea_name").val("无");
		}
	}
	var plan_level = $("input[name='plan_level'][type='radio']:checked").val();
	if(!!plan_level){
		if(plan_level=='1'){
			$("#plan_level_name").val("省级");
		}else if(plan_level=='2'){
			$("#plan_level_name").val("市级");
		}
	}
	
}



function getTotalCount(prefix,count,total,isDecimal){
	  var defaultIsDecimal = false;//默认为整数
	  if(isDecimal==null){
	        isDecimal = defaultIsDecimal;
	  }
	  var numStr = count.split(',');
	  var totalCount = 0;//总数	
	  if(!isDecimal){
	        for ( var int = 0; int < numStr.length; int++) {
	             var num = $('#'+prefix+numStr[int]).val();
	             if(!$.isNumeric(num))
	                  num = "0";
	             totalCount += parseInt(num);
	       }
	  }else {
	     for ( var int = 0; int < numStr.length; int++) {
	         var num = $('#'+prefix+numStr[int]).val();
	         if(!$.isNumeric(num))
	             num = "0";
	         totalCount += parseFloat(num);
	     }
	     totalCount = ((totalCount/100)*100).toFixed(2);
	  }
	  if(totalCount == 0){
	        $('#'+prefix+total).val("");
	  }else {
	        $('#'+prefix+total).val(totalCount);
	  }
	}
	function changeFhq(){
		if ($("input[id$='other04']").prop('checked')){
			$("input[id$='fuhuaqi_nature_other']").removeAttr("disabled");
			$("input[id$='fuhuaqi_nature_other']").removeAttr("class");
			$("input[id$='fuhuaqi_nature_other']").attr("class","required");
		}else{
	 		$("input[id$='fuhuaqi_nature_other']").attr("disabled","disabled");
	 		$("input[id$='fuhuaqi_nature_other']").attr("class","gray");
			$("input[id$='fuhuaqi_nature_other']").val(" ");
		}
	}



	function initControlValue(objId){
	    
	    var name="";
	    var obj=$("#"+objId);
	    if(obj.is("select")){
	        name=obj.attr("name");
	        obj.parent().children("input[name$='"+name+"_value'][type='hidden']").val($("#"+objId).find("option:selected").val());
	        $("#"+objId).parent().children("input[name$='"+name+"_name']").val($("#"+objId).find("option:selected").text());
	    }
	   
	    else if(obj.is(":radio")){
	        name=obj.attr("name");
	        if(obj.is(":checked")){//如果被选中
	            //alert($("#"+objId).val());        
	            obj.parents("table").find("input[name$='"+name+"_value'][type='hidden']").val($("#"+objId).val());
	            $("#"+objId).parent().children("input[name$='"+name+"_name']").val($("#"+objId).next().text());
	        }
	        else{
	            
	            obj.parents("table").find("input[name$='"+name+"_value'][type='hidden']").val("");
	        }
	    }else if(obj.is(":checkbox")){
	        name=obj.attr("name");
	        if(obj.is(":checked"))//如果被选中
	            obj.parent().find("input[name$='"+name+"_value'][type='hidden']").val($("#"+objId).val());
	        else
	            obj.parent().find("input[name$='"+name+"_value'][type='hidden']").val("");
	    }else{
	        name=obj.attr("id");
	        obj.parents("td").find("input[name$='"+name+"_name'][type='hidden']").val(obj.val());
	        obj.parents("td").find("input[name$='"+name+"_code'][type='hidden']").val($("#"+objId+"_hideId").val());
	    }   
	}


	$("table.t_css").each(function(){  
	    $(this).find("tr").not(".cbTable tr").filter(":even").addClass("li_1");
	    $(this).find("tr").not(".cbTable tr").filter(":odd").addClass("li_2");
	});

$('#topic_level1_year1_count,#topic_level1_year2_count,#topic_level1_year3_count').change(function(){
	getTotalCount('topic_level1_','year1_count,year2_count,year3_count','total_count',false);
});
$('#topic_level1_year1_fund,#topic_level1_year2_fund,#topic_level1_year3_fund').change(function(){
	getTotalCount('topic_level1_','year1_fund,year2_fund,year3_fund','total_fund',true);
});
$('#topic_level2_year1_count,#topic_level2_year2_count,#topic_level2_year3_count').change(function(){
	getTotalCount('topic_level2_','year1_count,year2_count,year3_count','total_count',false);
});
$('#topic_level2_year1_fund,#topic_level2_year2_fund,#topic_level2_year3_fund').change(function(){
	getTotalCount('topic_level2_','year1_fund,year2_fund,year3_fund','total_fund',true);
});
$('#topic_level3_year1_count,#topic_level3_year2_count,#topic_level3_year3_count').change(function(){
	getTotalCount('topic_level3_','year1_count,year2_count,year3_count','total_count',false);
});
$('#topic_level3_year1_fund,#topic_level3_year2_fund,#topic_level3_year3_fund').change(function(){
	getTotalCount('topic_level3_','year1_fund,year2_fund,year3_fund','total_fund',true);
});



function initControl11(){
	var parentId="";
	var initObjs = null;
	if(parentId==null || parentId=="")
		initObjs = $("select,:radio,:checkbox");
	else
		initObjs = $("#"+parentId).find("select,:radio,:checkbox");
	
	initObjs.each(function(){
		var obj=$(this);
		var name=obj.attr("name");
		var valueObj = obj.parents("tr").find("input[name$='"+name+"_value']");//保存选中的值
		var nameObj = obj.parents("tr").find("input[name$='"+name+"_name']");//保存下拉框选中的文本或单选框、复选框的label属性
		if(valueObj.length==0){
			valueObj = $("input[name$='"+name+"_value']");//保存选中的值
		}
		if(nameObj.length==0){
			nameObj = $("input[name$='"+name+"_name']");//保存下拉框选中的文本或单选框、复选框的label属性
		}
		var value = valueObj.val();
		var label = "";
		
		if(name==null || name=="" || valueObj.length==0)
			return true;
		
		if(obj.is("select")){//下拉框
			obj.val(value);
			
			obj.change(function(){
				valueObj.val($(this).val());
				nameObj.val($(this).find("option:selected").text());
			});
		} else if(obj.is(":radio")){//单选框
			if(value==obj.val())
				obj.attr("checked",true);
			
			obj.click(function(){
				if($(this).is(":checked")){
					valueObj.val($(this).val());
					
					if($(this).attr("label")!=null)
						label = $(this).attr("label");
					nameObj.val(label);
				}
			});
		} else if(obj.is(":checkbox")){	//复选框
			if(("，"+value+"，").indexOf("，"+obj.val()+"，")>=0)
				obj.attr("checked",true);
			if((","+value+",").indexOf(","+obj.val()+",")>=0)
				obj.attr("checked",true);
			obj.click(function(){
				var valueStr="";
				var nameStr="";
				initObjs.filter(":checkbox[name='"+name+"']:checked").each(function(){
					valueStr+="，"+$(this).val();
					if($(this).attr("label")!=null)
						label = $(this).attr("label");
					nameStr+="，"+label;
				});
				/* var valueStrs=valueStr.split("，");
				if(!!valueStrs[4]){
					obj.attr("checked",false);
					scmWarn('研发类型最多选择三项！','100px',2000);
				} */
				
				if(valueStr.length>0)
					valueStr=valueStr.substring(1);
				if(nameStr.length>0)
					nameStr=nameStr.substring(1);
				
				valueObj.val(valueStr);
				nameObj.val(nameStr);
			});
		}
	});
}

function initControl12(){
	var parentId="";
	var initObjs = null;
	if(parentId==null || parentId=="")
		initObjs = $("select,:radio,:checkbox");
	else
		initObjs = $("#"+parentId).find("select,:radio,:checkbox");
	
	initObjs.each(function(){
		var obj=$(this);
		var name=obj.attr("name");
		var valueObj = obj.parents("tr").find("input[name$='"+name+"_value']");//保存选中的值
		var nameObj = obj.parents("tr").find("input[name$='"+name+"_name']");//保存下拉框选中的文本或单选框、复选框的label属性
		if(valueObj.length==0){
			valueObj = $("input[name$='"+name+"_value']");//保存选中的值
		}
		if(nameObj.length==0){
			nameObj = $("input[name$='"+name+"_name']");//保存下拉框选中的文本或单选框、复选框的label属性
		}
		var value = valueObj.val();
		var label = "";
		
		if(name==null || name=="" || valueObj.length==0)
			return true;
		
		if(obj.is("select")){//下拉框
			obj.val(value);
			
			obj.change(function(){
				valueObj.val($(this).val());
				nameObj.val($(this).find("option:selected").text());
			});
		} else if(obj.is(":radio")){//单选框
			if(value==obj.val())
				obj.attr("checked",true);
			
			obj.click(function(){
				if($(this).is(":checked")){
					valueObj.val($(this).val());
					
					if($(this).attr("label")!=null)
						label = $(this).attr("label");
					nameObj.val(label);
				}
			});
		} else if(obj.is(":checkbox")){	//复选框
			if(("，"+value+"，").indexOf("，"+obj.val()+"，")>=0)
				obj.attr("checked",true);
			if((","+value+",").indexOf(","+obj.val()+",")>=0)
				obj.attr("checked",true);
			obj.click(function(){
				var valueStr="";
				var nameStr="";
				initObjs.filter(":checkbox[name='"+name+"']:checked").each(function(){
					valueStr+="，"+$(this).val();
					if($(this).attr("label")!=null)
						label = $(this).attr("label");
					nameStr+="，"+label;
				});
				/* var valueStrs=valueStr.split("，");
				if(!!valueStrs[4]){
					obj.attr("checked",false);
					scmWarn('研发类型最多选择三项！','100px',2000);
				} */
				
				if(valueStr.length>0)
					valueStr=valueStr.substring(1);
				if(nameStr.length>0)
					nameStr=nameStr.substring(1);
				
				valueObj.val(valueStr);
				nameObj.val(nameStr);
			});
		}
	});
}
</script>

</head>
<body style="overflow-x:hidden;overflow-y:auto;" >
	<div id="tabnav">
		<ul>
			<li class="down" id="tab1" onclick="changeTab(this.id)">
					<a href="###"><span>在孵企业基本情况</span></a>
			</li>
			
		</ul>
	</div>
	
	 <div class="tab_box" id="fragment-tab1">
		<table class="table01  t_css" width="100%" border="0" cellpadding="0" label="在孵企业基本情况" cellspacing="1">
		    <col style="width: 16%" />
            <col style="width: 15%" />
            <col style="width: 15%" />
            <col style="width: 15%" />
            <col style="width: 15%" />
            <col style="width: 24%" />
			<tr>
				<td align="right"><span class="color_red">*</span>企业名称：</td>
				<td colspan="3">
					<input type="text" style="width: 94%" label="企业名称" name="zh_name" class="required" maxlength="50"/>
				</td>
				<td align="right"><span class="color_red">*</span>成立日期：</td>
				<td>
				<input id="hold_birthday"  value="" className="required date"  style="text-align: center;" label="成立日期"  name="hold_birthday" ></input> 
			    </td>
			</tr>
			
			
			
			<tr>      
               <td align="right"><span class="color_red">*</span>法人代表：</td>
                   <td colspan="1">
      
                       <input name="legal_person" label="法人代表"  class="required input_text" maxlength="40"
                       value="">
                    </td>
        <td align="right"><span class="color_red">*</span>联系电话：</td>
        <td colspan="1">
           <input type="text" label="法人代表联系电话" name="contacts_mobile_hatched"
                class=" required" onfocus="InitInput.setNumber(this,15,0,0)"
                maxlength="15"
                value="">
        </td>
        <td align="right"><span class="color_red">*</span>传真：</td>
        
        <td colspan="1">
            <input type="text" maxlength="11" name="fax" class="required" label="传真"
                value="">
        </td>      
   </tr>
   
   
   
			 <tr>      
    <td align="right"><span class="color_red">*</span>注册资金(万元)：</td>
        <td colspan="1">
      <input type="text" label="注册资金" name="registered_capital_hatched"
                class=" " maxlength="50"  onfocus="InitInput.setNumber(this,9,2,2)"
                	style="text-align: center;"
                value="">
        </td>
        <td align="right"><span class="color_red">*</span>法人代码：</td>
        <td colspan="1" align="left">
           <input type="text" label="法人代码" name="legal_code" style="text-align: left;"
               class="required"  maxlength="11"   id="rogcode"
                value="">
        </td>
        <td align="right"><span class="color_red">*</span>入驻时间：</td>
        
        <td colspan="1">
            <input
            style="text-align: center;"
             id="settled_date_curr" name="settled_birthday"  value=""
               className="required date " label="入驻时间"></input>
        </td>      
   </tr>
   
   
<tr>      
    <td align="right"><span class="color_red">*</span>联系人：</td>
        <td colspan="1">
      
                <input name="c_name" label="联系人" class="required input_text" maxlength="40"
                value="">
        </td>
        <td align="right"><span class="color_red">*</span>联系电话：</td>
        <td colspan="1">
           <input type="text" label="联系人电话" name="contacts_phone_hatched"
                class=" required" onfocus="InitInput.setNumber(this,15,0,0)"
                maxlength="15"
                value="">
        </td>
        <td align="right"><span class="color_red">*</span>E-Mail：</td>
        
        <td colspan="1">
           <input type="text" label="E-Mail" name="contacts_email_c_name"
                class="required email" maxlength="50"
                value="">
        </td>      
   </tr>
   
   
   
  
    <tr>
        <td align="right"><span class="color_red">*</span>注册地址：</td>
        <td colspan="3">
            <input type="text" label="注册地址" name="register_address"
                class="required "  maxlength="150" style="width: 94%"
                value="">
        </td>
        <td align="right"><span class="color_red">*</span>邮编：</td>
        <td >
            <input type="text" label="邮编" name="contacts_postcode_hatched"
                class=" required" 
                maxlength="6"
                value="">
        </td>
    </tr>
    
    
   <tr>
        <td align="right"><span class="color_red">*</span>从业人员情况：</td>
        <td colspan="5">
           <span>从业总人数：</span><input class="required " onfocus="InitInput.setNumber(this,11,0,0)" style="border:0px;border-bottom:#000000 1px solid;text-align: center;" type="text" id="congye_num" name="congye_num"  class="gray" maxlength="11" label="从业总人数"  value=""/>
            <span>人,</span>
           <span>其中大专以上学历</span><input class="required " onfocus="InitInput.setNumber(this,11,0,0)" style="border:0px;border-bottom:#000000 1px solid;text-align: center;" type="text" id="congye_num_college" name="congye_num_college" class="gray" maxlength="11" label="其中大专以上学历人数"  value=""/>
            <span>人.</span>
        </td>

    </tr>
    
 <tr >
        <td align="right"><span class="color_red">*</span>企业登记类型：</td>
        <td colspan="5"  align="left" >
			  <cpt:checkbox key="qiyedengji_nature" name="qiyedengji_nature"  value="" onClick="initControl11()" width="90px;" repeatColumn="4" tagType="radio" ></cpt:checkbox>
		  	  <input type="hidden"  id="qiyedengji_nature_value" name="qiyedengji_nature_value"  class=""  value="" label="企业登记类型">
		  	  <input type="hidden"  name="qiyedengji_nature_name" value="">
          		
        </td>   
    </tr>
    
    
   <tr >
        <td align="right"><span class="color_red">*</span>企业特性：</td>
        <td colspan="5"  align="left" >
             <c:set var="qiyetexing_nature"></c:set>
			  <cpt:checkbox key="qiyetexing_nature" name="qiyetexing_nature"  value="" onClick="initControl12()" width="90px;" repeatColumn="4" tagType="radio" ></cpt:checkbox>
		  	  <input type="hidden"  id="qiyetexing_nature_value" name="qiyetexing_nature_value"  class=""  value="" label="企业特性">
		  	  <input type="hidden" name="qiyetexing_nature_name" value="">
          		
        </td>   
    </tr>
 
    
     <tr>
        <td colspan="3" align="center">
           <span>企业上年度收入:</span><input class="required " onfocus="InitInput.setNumber(this,9,2,2)" style="border:0px;border-bottom:#000000 1px solid;text-align: center;" type="text" id="enterprises_receipts" name="enterprises_receipts" class="gray " maxlength="50" label="企业上年度收入"  value=""/>
            <span>万元</span>        
        </td>
        <td colspan="3" align="left">
           <span>专利数：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><input class="required " onfocus="InitInput.setNumber(this,11,0,0)"  style="border:0px;border-bottom:#000000 1px solid;text-align: center;" type="text" id="research_team_patents_number" name="patents_number" class="gray " maxlength="11" label="专利数"  value=""/>
            <span>项</span><br/>
           <span>其中发明专利：</span><input class="required "  onfocus="InitInput.setNumber(this,11,0,0)" style="border:0px;border-bottom:#000000 1px solid;text-align: center;" type="text" id="research_team_invent_patents_number" name="invent_patents_number" class="gray " maxlength="11" label="发明专利数"  value=""/>
            <span>项</span>
        </td>
    </tr>
  
    
    
    <tr>  	
        <td colspan="6" align="left"><span class="color_red">*</span>企业经营范围及主导产品：</td>
    </tr>
    
    
    
         <tr>
        <td colspan="6">
            <textarea name="business_scope_brief" class="input_textarea required maxlength:5000" id="business_scope_brief"
                label="企业经营范围及主导产品" style="width: 98%"  rows="9"></textarea>
            <input type="hidden" name="business_scope_brief_hidden" id="business_scope_brief_hidden" value=""/>
        </td>
      </tr>
    
		</table>
	</div>
	


<div class="t_bar" align="center" >承担国家、地方科技计划项目实施情况</div>

	<input type="hidden" id="equipments" name="equipments" >
	<table  id="tblPrjCase" cellpadding="0" class="table_tmp" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
			
           <col style="width: 5%"/>
           <col style="width: 19%"/>
           <col style="width: 19%"/>
           <col style="width: 19%"/>
           <col style="width: 19%"/>
           <col style="width: 30%"/>
			<thead width="100%">
					<tr width="100%" style="border:1px solid #B7D1E6 ">
						
                       <th class="TblHead" align="center">序号</th>
                       <th class="TblHead" align="center">科技计划项目名称</th>
                       <th class="TblHead" align="center">项目类型</th>
                       <th class="TblHead" align="center">立项年度</th>
                       <th class="TblHead" align="center">支持金额(万元)</th>
                       <th class="TblHead" align="center">执行情况</th>     
					</tr>
			</thead>
			<tbody id="tab" width="100%">
					<tr  style="display:none">
		            
                       <td align="center">
                           <span name="equipments|equipment[0]@seq_no" >[index]</span> 
                       </td>
                       <td align="center">
                           <input type="text" id="equipment[index]_science_name" name="equipments|equipment[0]|science_name" style="width: 80%" label="科技计划项目名称"  required class="input_text required" value="" maxlength="50"/>
                       </td>
                       
                       <td align="center">
                           <input type="text" id="equipment[index]_project_type" name="equipments|equipment[0]|project_type" style="width: 80%" label="项目类型"  required class="input_text required" value="" maxlength="50"/>
                       </td>                     
                       <td align="center">
                           <input type="text" id="equipment[index]_project_annual" name="equipments|equipment[0]|project_annual" style="width: 60%;text-align:center;"  onfocus="InitInput.setNumber(this,4,0,0)" label="立项年度" class="input_text year required"   maxlength="4" value=""/>
                       </td>
                       <td align="center">
                           <input type="text" id="equipment[index]_money" name="equipments|equipment[0]|money"  onfocus="InitInput.setNumber(this,9,2,2)" style="width: 80%;text-align:center;" label="支持金额"  required class="input_text required" value="" maxlength="20"/>
                       </td>
                       <td align="center">
                           <input type="text" id="equipment[index]_executive_condition" name="equipments|equipment[0]|executive_condition" style="width: 80%" label="执行情况"  required class="input_text required" value="" maxlength="20"/>
                       </td>
					</tr>
					
				</tbody>
			</table>
		
			<br/> 
			<table style="display: none;">
			  <tr >
				<td colspan="6">
						<input class="button" name="cmdAddbefore" type=button value="添加" id="cmdAddbefore"
						onclick="if(checkTabLimit('tblPrjCase',999,'承担国家、地方科技计划项目实施情况内容最多只能填写999条')){addNewRow('tblPrjCase');showDateTag('tblPrjCase');}try{top.resizeFrame();}catch(e){};">
				</td>
				</tr>
			</table>

<table width="100%" align="center">
		<tr>
			<td>
				&nbsp;<input type="button" id="cancel" class="button_01 notdisabled" value="关闭" onclick="parent.tb_remove();">
			</td>
		</tr>
	</table>
</body>
</html>

